package mianxiangduixiang.Test5;

public class RubberPencil extends Pencil implements Erase {
    String type, color;

    public RubberPencil() {
    }

    public RubberPencil(String type, String type1, String color) {
        super(type);
        this.type = type1;
        this.color = color;
    }

    @Override
    public String toString() {
        return super.toString() + "RubberPencil{" +
                "type='" + type + '\'' +
                ", color='" + color + '\'' +
                '}';
    }

    @Override
    public void erase(String s) {
        System.out.println(s+"擦除啦！");
    }
}
